package com.training.java.core.unittest;

import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorCopyTest {
	
	@Test
	public void testAdd()
	{
		CalculatorCopy calc = new CalculatorCopy();
		int result = calc.add(2, 3);
		
		TestCase.assertEquals(5, result);
		
		System.out.println("Result = " + result);
	}
	
	@Test
	public void testSub()
	{
		CalculatorCopy calc = new CalculatorCopy();
		int result = calc.subtract(10, 6);
		
		TestCase.assertEquals(4, result);
		
		System.out.println(("Result = " + result));
				
	}
	
	@Test
	public void testMultiply()
	{
		CalculatorCopy calc = new CalculatorCopy();
		int result = calc.multiply(2, 9);
		
		TestCase.assertEquals(18, result);
		System.out.println("Result = " + result);
	}

}
